import Layout from '@/layout'

const adminRouter = {
  path: '/admin',
  component: Layout,
  redirect: 'noRedirect',
  name: 'admin',
  meta: { title: '系统管理', icon: 'el-icon-s-management' },
  children: [
    {
      path: 'sysuser',
      component: () => import('@/views/admin/sysuser'),
      name: 'sysuser',
      meta: { title: '用户管理', icon: 'el-icon-user' }
    },
    {
      path: 'sysusergroup',
      component: () => import('@/views/admin/sysusergroup'),
      name: 'sysusergroup',
      meta: { title: '用户组管理', icon: 'el-icon-user' }
    },
    {
      path: 'sysmenu',
      component: () => import('@/views/admin/sysmenu'),
      name: 'sysmenu',
      meta: { title: '菜单管理', icon: 'el-icon-menu' }
    },
    {
      path: 'sysdict',
      component: () => import('@/views/admin/sysdict'),
      name: 'sysdict',
      meta: { title: '字典管理', icon: 'el-icon-menu' }
    },
    {
      path: 'sysorg',
      component: () => import('@/views/admin/sysorg'),
      name: 'sysorg',
      meta: { title: '机构管理', icon: 'el-icon-menu' }
    },
    {
      path: 'sysregion',
      component: () => import('@/views/admin/sysregion'),
      name: 'sysregion',
      meta: { title: '区域管理', icon: 'el-icon-menu' }
    },
    {
      path: 'sysparam',
      component: () => import('@/views/admin/sysparam'),
      name: 'sysparam',
      meta: { title: '参数管理', icon: 'el-icon-menu' }
    },
    {
      path: 'notification',
      component: () => import('@/views/admin/notification'),
      name: 'notification',
      meta: { title: '消息通知', icon: 'el-icon-menu' }
    },
    {
      path: 'appclient',
      component: () => import('@/views/admin/appclient'),
      name: 'appclient',
      meta: { title: '应用管理', icon: 'el-icon-menu' }
    }
  ]
}
export default adminRouter
